#include <iostream>
using namespace std;

int f (int n)
{
	if (n == 1) 
	{
		return 1;//f(1)=1.
	}
	else 
	{
		return 2*f(n - 1) + 3;
	}
}

int main()
{
	for( int i=1; i <= 8; i++)
	{
		cout << "f( " << i << " )= " << f(i) <<endl;//biaoshi f(n)=2*f(n-1)+3.
	}
	return 0;
}
